package IMIC_TrinhCongDoc.bai04;

public class model {
public int Tinh (use a1){
	int kq;
	switch (a1.getThang()){
	case 4 :
		kq = 30;
		break ;
	case 6 :
		kq = 30;
		break ;
	case 9 :
		kq = 30;
		break ;
	case 11 :
		kq = 30;
		break ;
	case 2 : {
		if ((a1.getNam()%4==0) ){
			kq = 29;
		}else{
		kq = 28;}
		break ;
	}default :
		kq = 31;
}
	return kq;
}
}
